package com.miao.entity;

public class Template {
    private String controller;
    private String service;
    private String serviceImpl;
    private String dao;
    private String dto;
    private String entity;

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getServiceImpl() {
        return serviceImpl;
    }

    public void setServiceImpl(String serviceImpl) {
        this.serviceImpl = serviceImpl;
    }

    public String getDao() {
        return dao;
    }

    public void setDao(String dao) {
        this.dao = dao;
    }

    public String getDto() {
        return dto;
    }

    public void setDto(String dto) {
        this.dto = dto;
    }

    public String getEntity() {
        return entity;
    }

    public void setEntity(String entity) {
        this.entity = entity;
    }

    @Override
    public String toString() {
        return "Template{" +
                "controller='" + controller + '\'' +
                ", service='" + service + '\'' +
                ", serviceImpl='" + serviceImpl + '\'' +
                ", dao='" + dao + '\'' +
                ", dto='" + dto + '\'' +
                ", entity='" + entity + '\'' +
                '}';
    }

    public class TemplateBuilder {
        private String controller;
        private String service;
        private String serviceImpl;
        private String dao;
        private String dto;
        private String entity;

        public TemplateBuilder() {
        }

        public TemplateBuilder Controller(String controller) {
            this.controller = controller;
            return this;
        }

        public TemplateBuilder Service(String controller) {
            this.service = controller;
            return this;
        }

        public TemplateBuilder ServiceImpl(String controller) {
            this.serviceImpl = controller;
            return this;
        }

        public TemplateBuilder Dao(String controller) {
            this.dao = controller;
            return this;
        }

        public TemplateBuilder DTO(String controller) {
            this.dto = controller;
            return this;
        }

        public TemplateBuilder Entity(String controller) {
            this.entity = controller;
            return this;
        }
    }

}
